package com.nuc.workflowserver.common.model;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
public class ResultModel {

    private String message;

    private String code;

    private Object object;

    private boolean success;

    public ResultModel(String message, String code, Object object,
            boolean success) {
        this.message = message;
        this.code = code;
        this.object = object;
        this.success = success;
    }

    public ResultModel(Object object, boolean success) {
        this.object = object;
        this.success = success;
    }

    public ResultModel(String message, Object object, boolean success) {
        this.message = message;
        this.object = object;
        this.success = success;
    }

    public ResultModel(String message, boolean success) {
        this.message = message;
        this.success = success;
    }
}
